package Month07.day21.stu.test3;

public class test6 {
    public static void main(String[] args) {
        int result=getS(10);
        System.out.println(result);
    }
    public static int getS(int i){
        if (i==1){
            return 1;
        }else {
            return (getS(i-1)+1)*2;
        }
    }
}
